<template>
  <div :class="{ 'rb-tab': true, 'rb-tab-active': isActive }">
    <slot></slot>
  </div>
</template>

<script setup>
const props = defineProps({
  isActive: {
    type: Boolean,
    default: false,
  },
});
</script>

<style lang='scss' scoped>
.rb-tab {
  width: 318px;
  height: 84px;
  background: #fff;
  border-radius: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  color: var(--primary-color);
  font-weight: 600;
  opacity: 0.6;
  cursor: pointer;
}
.rb-tab-active {
  opacity: 1;
}
</style>